{% extends "base.html" %}



{% block title %}Crear Rol{% endblock %}
{% block head %}Crear Rol{% endblock %}

{% block content %}

{% if choose %}
<table id="tabla1" border="1" cellspacing="0">
<thead>
<th>
Tipo de Rol
</th>
</thead>
<tbody>
<tr>
<td>
<a href="/rol_save/?tipo=ad" class="title">
Rol Administrativo</a>
</td>
</tr>
<tr>
<td>
<a href="/rol_save/?tipo=op" class="title">
Rol Operativo</a>
</td>
</tr>
</tbody>
</table>
<br>
<input type="button" name="load" value="Volver al Men&uacute;" onClick='location.href="/"'>
{% else %}
<style type="text/css">
label { vertical-align: top; }
</style>
<form method="post" action=".">
	{{ rol_form.as_p }}
	<input name="tipoRol" type="hidden" value={{tipo}}>
	<input type="submit" value="Guardar" />
    <input type="button" name="load" value="Cancelar" onClick='location.href="/rol_save/"'>
</form>
{% endif %}
{% endblock %}